/**
 * Copyright (c) 2011-11-8 WKM and/or its affiliates. 
 * Use is subject to license terms.
 * All rights reserved.
 */
package org.wkm.util;

import java.io.File;


/**
 * @author WKM
 * Modification history
 * 1.WKM - 2011-11-8 -Create File
 */
public class Home {

	/**
	 * 静态文件
	 */
	private Home(){}
	
	public static String getHomePath(){
		if(System.getProperty("wkm.home") == null){
			return System.getProperty("user.dir");
		} else {
			return System.getProperty("wkm.home") + File.separator + Configuration.SYSTEM_LIBRARY;
		}
	}
	
	public static String getPath(String dirName){
		return merge(getHomePath() , dirName);
	}
	
	public static String merge(String parent,String child){
		return parent + File.separator + child;
	}
	
	public static void main(String[] args) {
		System.out.println(Home.getHomePath());
	}
}
